<?php
/**
 * PHP Class
 *
 * LICENSE
 *
 * Processing:
 *
 * @category   	Joomzf Cms
 * @package    	App
 * @copyright  	Copyright vinanewstar.vn@gmail.com
 * @author		GiangNam (vinanewstar.vn@gmail.com)
 * @license    	GNU General Public License Version 2 or later (the "GPL")
 * @version     v1.0 May 27, 2012 - 6:41:11 PM
 */
$config = new Joomzf_Config(APPLICATION_PATH.DS.'configs'.DS.'cms.ini','default','ini');

define('TBL_PRF',$config->getConfig('dbprefix'));
define('BASE_URL', DS.$config->getConfig('site.baseUrl'));

define('CACHE_MODULE',$config->getConfig('caching.module'));
define('CACHE_LANG',$config->getConfig('caching.language'));

define('dfBACKEND_COM',$config->getConfig('site.defaultBackendCom'));
define('dfFRONTEND_COM',$config->getConfig('site.defaultFrontendCom'));



define('PUBLIC_PATH', dirname(__FILE__) . DS.'public');
define('PUBLIC_URL', BASE_URL . DS.'public');
define('FRONTEND_TEMPLATE_PATH', PUBLIC_PATH . DS.'templates'.DS.'frontend');
define('FRONTEND_TEMPLATE_URL', PUBLIC_URL . DS.'templates'.DS.'frontend');
define('BACKEND_TEMPLATE_PATH', PUBLIC_PATH . DS.'templates'.DS.'backend');
define('BACKEND_TEMPLATE_URL', PUBLIC_URL . DS.'templates'.DS.'backend');

define('FRONTEND_MODULES_PATH', dirname(__FILE__) . DS.'modules'.DS.'frontend');
define('FRONTEND_MODULES_URL', BASE_URL . DS.'modules'.DS.'frontend');
define('BACKEND_MODULES_PATH', dirname(__FILE__) . DS.'modules'.DS.'backend');
define('BACKTEND_MODULES_URL', BASE_URL . DS.'modules'.DS.'backend');

define('FRONTEND_CPN_PATH', dirname(__FILE__). DS.'components'.DS.'frontend');
define('FRONTEND_CPN_URL', BASE_URL . DS.'components'.DS.'frontend');
define('BACKEND_CPN_PATH', dirname(__FILE__). DS.'components'.DS.'backend');
define('BACKEND_CPN_URL', BASE_URL . DS.'components'.DS.'backend');

define('FILE_PATH', PUBLIC_PATH . DS.'files');
define('FILE_URL', PUBLIC_URL . DS.'files');

define('LANGUAGES_PATH', APPLICATION_PATH . DS.'languages');
define('CACHE_PATH', APPLICATION_PATH . DS.'cache');
define('CONFIG_PATH', APPLICATION_PATH . DS.'configs');

define('SCRIPTS_PATH', PUBLIC_PATH . DS.'scripts');
define('SCRIPTS_URL', PUBLIC_URL . DS.'scripts');
